package com.turing.post.account.impl;

import javax.ejb.Local;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.turing.post.account.util.AccountSystemSpecialRegister;
import com.turing.post.account.util.AccountSystemSpecialRegisterDao;
import com.turing.post.util.GeneralDao;
import com.turing.post.util.PCPSApplicationException;

@Stateless(mappedName = "account.impl.AccountSystemSpecialRegisterDaoImpl")
@Remote
@Local
public class AccountSystemSpecialRegisterDaoImpl implements
		AccountSystemSpecialRegisterDao {
	/**
	 * 实体管理器
	 * 
	 * @see javax.persistence.EntityManager
	 */
	@PersistenceContext
	protected EntityManager _em;

	/**
	 * 插入帐户子系统交易流水记录
	 */
	public void insert(AccountSystemSpecialRegister assr)
			throws PCPSApplicationException {
		GeneralDao.insert(_em, assr);
	}
}